
<!--
#    Copyright 2011 Tri-County Electric Cooperative, St. Matthews, South Carolina
#    This file is part of COOPIP.
#    COOPIP is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#    COOPIP is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#    You should have received a copy of the GNU General Public License
#    along with COOPIP.  If not, see <http://www.gnu.org/licenses/>.
**************************************************************************
THIS FILE WAS DYNAMICALLY GENERATED BY THE DYNAMIC TEMPLATE INCLUDE
MODIFICATIONS TO THIS FILE WILL BE PERIODICALLY OVERWRITTEN!!!!!
MODIFY THIS TEMPLATE IN THE COOPIP_DYNAMICTEMPLATE.PY FILE
**************************************************************************
-->

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <style type="text/css">
        #map {
            width: 1500px;
            height: 1000px;
            border: 1px solid black;
        }
    </style>
    <!-- <script src="/openlayers/lib/OpenLayers.js"></script> -->
   
    <title>COOPIP System Map</title>
    <link rel="stylesheet" type="text/css" href="/style.css" />
  <script src="/openlayers/lib/OpenLayers.js"></script>
  </head>
  <body style="background-image:url('/intranetbackgroundimages/');background-size: 100%;background-color:rgb(210,180,140);background-repeat: no-repeat;">

<div id="dispatchmap">
<table>
<tr>
    <td VALIGN="top"><div id="map">   <script defer="defer" type="text/javascript">
    var bnd = new OpenLayers.Bounds(-9040000, 3940000, -8931000, 4061000);
   
    var options = {projection: new OpenLayers.Projection("EPSG:3857"),
        displayProjection: new OpenLayers.Projection("EPSG:4326"),
        units: "m",
        numZoomLevels: 22,
        maxResolution: 'auto', 
        maxExtent: bnd,
        'tileSize': new OpenLayers.Size(1024,768),
        'buffer':0};
       
    var map = new OpenLayers.Map('map', options);
    var water = new OpenLayers.Layer.MapServer("Water", 
                  "/cgi-bin/mapserv?MAP=/opt/coopip/mapserver/water.map",
                  {Layers:"Road"},
		   {'buffer':0, 
                   'sphericalMercator': 'true',
                  'projection': new OpenLayers.Projection("EPSG:3857"),
                   visibility: false,
                   isBaseLayer: false});

    var road = new OpenLayers.Layer.MapServer("Road", 
                  "/cgi-bin/mapserv?MAP=/opt/coopip/mapserver/road.map",
                  {Layers:"Road"},
		   {'buffer':0, 
                   'sphericalMercator': 'true',
                  'projection': new OpenLayers.Projection("EPSG:3857"),
                   visibility: true,
                   isBaseLayer: false});
    
    var coopgissymbologycircuit = new OpenLayers.Layer.MapServer("GIS Circuits", 
              "/cgi-bin/mapserv?MAP=/opt/coopip/mapserver/coopgissymbologycircuit.map",
              {Layers:"Primary Line Circuit Color"},
              {'buffer':0, 
               'sphericalMercator': 'true',
               'projection': new OpenLayers.Projection("EPSG:3857"),
                visibility: false,
                isBaseLayer: false});
    
    var staticlabels = new OpenLayers.Layer.MapServer("Static Labels",
              "/cgi-bin/mapserv?MAP=/opt/coopip/mapserver/test.map",
              {Layers:"MapLabel"},
              {'buffer':0, 
               'sphericalMercator': 'true',
               'projection': new OpenLayers.Projection("EPSG:3857"),
                visibility: true,
                isBaseLayer: false});

    var coopgissubstation = new OpenLayers.Layer.MapServer('GIS Substations',
              "/cgi-bin/mapserv?MAP=/opt/coopip/mapserver/coopgissubstation.map",
              {Layers:"Substation"},
               {'buffer':0, 
               'sphericalMercator': 'true',
               'projection': new OpenLayers.Projection("EPSG:3857"),
                visibility: true,
                isBaseLayer: false});

    var serviceorder = new OpenLayers.Layer.MapServer("ServiceOrder", 
                  "/cgi-bin/mapserv?MAP=/opt/coopip/mapserver/coopipserviceorder.map",
                  {Layers:"ServiceOrder"},
		   {'buffer':0, 
                   'sphericalMercator': 'true',
                  'projection': new OpenLayers.Projection("EPSG:3857"),
                   visibility: false,
                   isBaseLayer: false});

    var failedmeter = new OpenLayers.Layer.MapServer("Failed Meters", 
                  "/cgi-bin/mapserv?MAP=/opt/coopip/mapserver/dispatchmeters.map",
                  {Layers:"Meter"},
		   {'buffer':0, 
                   'sphericalMercator': 'true',
                  'projection': new OpenLayers.Projection("EPSG:3857"),
                   visibility: true,
                   isBaseLayer: false});


    var truck = new OpenLayers.Layer.MapServer("Truck", 
                  "/cgi-bin/mapserv?MAP=/opt/coopip/mapserver/truck.map",
                  {Layers:"Truck"},
		   {'buffer':0, 
                   'sphericalMercator': 'true',
                  'projection': new OpenLayers.Projection("EPSG:3857"),
                   visibility: true,
                   isBaseLayer: false});
               

    var optionsforgraphic = {numZoomLevels: 22, maxResolution: 10000000, minResolution: 0.1};
    var graphic = new OpenLayers.Layer.Image('Background',
         '/mapbackground.png',
         bnd,
         new OpenLayers.Size(1024, 1024),
         optionsforgraphic);
    graphic.events.on({loadstart: function() {OpenLayers.Console.log("loadstart");},
                       loadend: function() {OpenLayers.Console.log("loadend");}
                       });
    map.addLayers([graphic, water, road, coopgissymbologycircuit, staticlabels, coopgissubstation, truck, serviceorder, failedmeter]);
    map.addControl(new OpenLayers.Control.LayerSwitcher());
    map.addControl(new OpenLayers.Control.Permalink());
    map.addControl(new OpenLayers.Control.MousePosition());
    if (!map.getCenter()) {map.zoomToExtent(bnd)}
    map.setCenter(new OpenLayers.LonLat(-8977541.20776,3996503.90054), 13);

	  
  </script></td>
    <td><pre></pre></td>
</tr>

</table>
</div>
</div>
</form>
</body>
</html>

